package org.example.manage.controller.wordSave;

import org.example.api.wordSave.WordSaveControllerApi;
import org.example.framework.model.response.ObjectResult;
import org.example.manage.service.wordSave.WordSaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wwy
 * @date 2020-11-09 19:47
 */
@RestController
@RequestMapping("/wordSave")
public class WordSaveController implements WordSaveControllerApi {
    @Autowired
    private WordSaveService wordSaveService;

    @GetMapping("/saveFile")
    @Override
    public ObjectResult saveFile() {
        return wordSaveService.saveFile();
    }
}
